{% extends "base.html" %}

{% block title %}Pilot List{% endblock %}
{% block heading %}Pilot List{% endblock %}

{% block leftmenu %}
	<a href='/pages?page=addalt'>Add alt</a><br/>
{% endblock %}

{% block content %}
		<table>
			<tr class='standard'>
				<th align='left'>Pilot Name</th>
				<th align='left'>Last Op</th>
				<th align='left'>Main</th>
				<th align='left'>Director?</th>
				<th align='left'>Dev?</th>
				<!--
				<th align='left'>Alts</th>
				-->
			</tr>

		{% for pilot in pilots %}
			<tr class="{% cycle odd,even%}">
				<td>{{pilot.char_name}}</td>
				<td>{{pilot.last_op|date:"Y-m-d"}}&nbsp;</td>
				<!--
				<td>{{pilot.is_main|yesno:"Yes,No"}}&nbsp;</td>
				-->
				<td>
					{% if pilot.main_char %}
						{{pilot.main_char}}
					{% endif %} &nbsp;
				</td>
				<td>{{pilot.is_director|yesno:"Yes,No"}}&nbsp;
				{% if is_super %}
					<a href='/setdirector?name={{pilot.char_name}}'>[toggle]</a>
				{% endif %}
				</td>
				<td>{{pilot.is_dev|yesno:"Yes,No"}}&nbsp;</td>
				<!--
				<td>{{pilot.alts|join:","}}&nbsp;</td>
				-->
			</tr>
		{% endfor %}

		</table>
		
{% endblock %}
